﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yto.Entities
{
    public interface IEntity : IEntity<int>
    {
    }

    /// <summary>
    /// 用于定义EF框架实体类的基础类型
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IEntity<T>
    {
        /// <summary>
        /// Unique Identifier,用于Oracle定义列名为大写
        /// </summary>
        [Column("ID")]
        T Id { get; set; }

    }
}
